package com.peas.platform.module.icims.contract.initial.controller.vo;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同执行-借阅")
public class ContractInitialBorrowVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    private Long contractInitialId;

    @Comment(value = "批次号")
    @ApiModelProperty(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    private String batch;

    // 【用户表】
    @Comment(value = "借阅人")
    @ApiModelProperty(value = "借阅人")
    private Long borrowUserId;

    // 【组织架构表】
    @Comment(value = "借阅人部门")
    @ApiModelProperty(value = "借阅人部门")
    private Long borrowDepartmentId;

    // 纸质、电子
    @Comment(value = "借阅类型", dictType = "ContractInitialBorrowType")
    @ApiModelProperty(value = "借阅类型", notes = "字典取值:ContractInitialBorrowType")
    @Size(max = 20, message = "借阅类型不能超过20个字符")
    private String borrowType;

    @Comment(value = "借阅状态", enumType = "ContractInitialBorrowState")
    @ApiModelProperty(value = "借阅状态", notes = "枚举取值:ContractInitialBorrowState")
    @Size(max = 20, message = "借阅状态不能超过20个字符")
    private String state;

    @Comment(value = "借阅凭据")
    @ApiModelProperty(value = "借阅凭据")
    @Size(max = 100, message = "借阅凭据不能超过100个字符")
    private String borrowToken;

    // 【附件表】
    @Comment(value = "借阅签字附件")
    @ApiModelProperty(value = "借阅签字附件")
    private Long borrowAttachmentId;

    @Comment(value = "电子档下载次数")
    @ApiModelProperty(value = "电子档下载次数")
    private Long downloadTimes;

    @Comment(value = "归还时间")
    @ApiModelProperty(value = "归还时间")
    private Date returnTime;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    @Size(max = 1000, message = "备注不能超过1000个字符")
    private String remark;

}
